<script type="text/javascript">

<list:LIST id='topdownmenu'>
<list:ITEM>
var submenuFields{$number}=[];
	var submenus='{$submenu}';
	var arraySubmenus=submenus.split(/[\]\[]/);
	for(var i=0;i!=arraySubmenus.length;i++){
			var submenu=arraySubmenus[i].split(/,/);
			submenuFields{$number}[i]=[submenu[0],submenu[1],null];
	}
	
</list:ITEM>	
</list:LIST>
</script>